import { HTTP } from '../utils/httpRequestUtil'
import URL from './api'
export default {
  //人员列表
  hrUserInfoList (params, cb) {
    HTTP.post(URL.hrUserInfoList, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
   //人员详情
   hrUserInfoDetail (params, cb) {
    HTTP.post(URL.hrUserInfoDetail, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
   //人员新增
   hrUserInfoAdd (params, cb) {
    HTTP.post(URL.hrUserInfoAdd, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
   //人员编辑
   hrUserInfoEdit (params, cb) {
    HTTP.post(URL.hrUserInfoEdit, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //人员删除
  hrUserInfoDel (params, cb) {
    HTTP.post(URL.hrUserInfoDel, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //人员列表导入
  hrUserInfoImportFromExcel (params, cb) {
    HTTP.post(URL.hrUserInfoImportFromExcel, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //人员列表导出
  hrUserInfoExportExcel (params, cb) {
    HTTP.post(URL.hrUserInfoExportExcel, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //审批记录列表
  hrProcessRecordListPage (params, cb) {
    HTTP.post(URL.hrProcessRecordListPage, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //审批记录列表导出
  hrProcessRecordExportExcel (params, cb) {
    HTTP.post(URL.hrProcessRecordExportExcel, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  // 后/前台人员调配（提交流程）
  hrDeployPlanSavePlan (params, cb) {
    HTTP.post(URL.hrDeployPlanSavePlan, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //前后台人员调配审批
  hrDeployPlanSubmitProcess (params, cb) {
    HTTP.post(URL.hrDeployPlanSubmitProcess, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  //前后台人员获取调配计划详情
  hrDeployPlanGetDeployPlanInfo (params, cb) {
    HTTP.post(URL.hrDeployPlanGetDeployPlanInfo, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },

  
}